$OpenBSD: patch-src_config_c,v 1.5 2015/04/27 08:53:17 dcoppa Exp $

Recognize LOG_DAEMON as a valid facility

--- src/config.c.orig	Wed Apr  1 16:01:44 2015
+++ src/config.c	Mon Apr 27 10:37:39 2015
@@ -38,6 +38,7 @@ static struct {
     const char     *name;
     const int       value;
 } validSyslogFacilities[] = {
+    {"daemon",  LOG_DAEMON},
     {"user",    LOG_USER},
     {"local0",  LOG_LOCAL0},
     {"local1",  LOG_LOCAL1},
@@ -209,7 +210,7 @@ void loadServerConfigFromString(char *config) {
             }
 
             if (!validSyslogFacilities[i].name) {
-                err = "Invalid log facility. Must be one of USER or between LOCAL0-LOCAL7";
+                err = "Invalid log facility. Must be one of DAEMON, USER or between LOCAL0-LOCAL7";
                 goto loaderr;
             }
         } else if (!strcasecmp(argv[0],"databases") && argc == 2) {
